package com.EAIPClub.codeidedispatchingcenter;

import com.EAIPClub.codeidedispatchingcenter.service.CodeIdeDispatchingCenterService;
import com.EAIPClub.codeidedispatchingcenter.service.impl.CodeIdeDispatchingCenterServiceImpl;
import org.junit.jupiter.api.Test;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.Arrays;

/**
 * @Description :
 * @Author :
 * @Date : 2021/10/26
 */
@SpringBootTest
public class test {
    @Autowired
    private CodeIdeDispatchingCenterServiceImpl codeIdeDispatchingCenterService;

    @Autowired
    private RabbitTemplate rabbitTemplate;


    @Test
    public void rabbitmqTest(){

        String queueName="test";
        String massage="hello,springboot amqp";
        rabbitTemplate.convertAndSend(queueName,massage);

    }

}
